package com.jing.weibo.mapper.user;

import java.util.List;

import com.jing.weibo.pojo.user.UserCwMp;

/**
 * 可同城互粉用户的Mapper
 * @author jing.yue
 * @version 2012/11/19 1.0.0
 */
public interface UserCwMpMapper {

	/**
	 * 保存可同城互粉用户信息
	 * @param userMp
	 * @throws Exception
	 */
	public abstract void saveUserCwMp(UserCwMp userCwMp) throws Exception;

	/**
	 * 根据用户名查询对象
	 * @param username
	 * @return
	 * @throws Exception
	 */
	public abstract UserCwMp findByUsername(String username) throws Exception;

	/**
	 * 根据用户名修改信息
	 * @param userMp
	 * @throws Exception
	 */
	public abstract void updateUserCwMp(UserCwMp userCwMp) throws Exception;

	/**
	 * 根据用户名删除可同城互粉用户信息
	 * @param username
	 * @throws Exception
	 */
	public abstract void deleteByUsername(String username) throws Exception;

	/**
	 * 分页根据用户所在地区获取同城用户信息集合
	 * @param userCwMp
	 * @return
	 * @throws Exception
	 */
	public abstract List<UserCwMp> findByUserInfo(UserCwMp userCwMp) throws Exception;

	/**
	 * 分页根据用户所在地区获取同城用户信息集合记录数
	 * @param userCwMp
	 * @return
	 * @throws Exception
	 */
	public abstract Integer findByUserInfoCount(UserCwMp userCwMp) throws Exception;
}